Component({
  // externalClasses: ['wr-class'],

  properties: {
    goodsList: {
      type: Array,
      value: [],
    },
  },

  data: {},

  lifetimes: {
    ready() {
      // this.init();
    },
  },

  methods: {
    runGoodsDetail(e) {
      const {item} = e.currentTarget.dataset
      wx.navigateTo({
        url: `/pages/goods/details/index?goodsId=${item.id}`,
      });
    }
  },
});
